from django.db import models
from op_drf.base import BaseModel

# Create your models here.

class Cus_Service(BaseModel):
    full_name = models.CharField(max_length=255,verbose_name="fullname",null=True,blank=True)
    email_address = models.CharField(max_length=255,verbose_name="email_address",null=True,blank=True)
    app_date = models.DateField(verbose_name="Appointment_Date",null=True,blank=True)
    mobile = models.CharField(max_length=20,verbose_name="mobile_number",help_text="mobile_number",null=True,blank=True)
    problem = models.TextField(verbose_name="Problem",help_text="Problem",null=False,blank=False)
    human = models.CharField(max_length=30,verbose_name="human",help_text="human",null=True,blank=True)

    class Meta:
        db_table = "xyx_Service"
        verbose_name = "客服留意信息"
        verbose_name_plural = verbose_name


class Cus_Contact(BaseModel):
    name = models.CharField(max_length=255,verbose_name="名字",null=True,blank=True)
    describe = models.TextField(verbose_name="描述",null=True,blank=True)
    qr_code = models.CharField(max_length=100,verbose_name="二维码地址",help_text="二维码地址",null=True,blank=True)

    class Meta:
        db_table = "xyx_Contact"
        verbose_name = "联系我们"
        verbose_name_plural = verbose_name